#include"mystring.h"
//using namespace zcg;
//using namespace std;
int main()
{/*
	const char* s = "xsmskm";
	cout << *s++;*/

	/*int a = 5, b = 6, c = 10;
	(a = b) = c;
	cout << a<<endl;
	cout << (a = 120);*/

	/*mystring s("njnkjnk");
	cout << *s.begin();
	mystring a(s.begin(), s.end());
	a.resize(100,'a');
	cout << a.c_str();*/
	/*mystring s("aaaaaaaaaaaaaa");
	s.resize(5, 'b');
	s[0] = 'b';
	cout << s.c_str();*/
	zcg::mystring s("nnsxbbaaa");
	cin >> s;
	cout << s;
	getline(cin, s, ' ');
	cout << s;
	//cin >> s;
	//cout << s;
	//cin >> s;
	//s.reserve(5);
	//s.append("aa");
	/*s += "bbbbbbbbbbbbbbbbbbbbbbbbbbb";*/
	//s.insert(1, "xssxsx");
	//cout << s.c_str();
	///size_t a = -1;
	///cout << a;
	/*s.erase(0,1);
	cout << s.c_str()<<endl;
	cout<<s.find("aa",6)<<endl;
	cout<<s.substr(3, 1000) << endl;*/
	/*string a("aa");
	a.insert(2, "cdcdc");
	cout << a;*/
	//mystring s;
}